<!DOCTYPE html>
<html lang="en" xmlns:v-text="http://www.w3.org/1999/xhtml" xmlns:v-model="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
<counter></counter>
    <introduce v-bind:title="msg"></introduce>
</div>

<script type="text/javascript">
    const counter = {
        template:"<h2>hello component {{title}}</h2>",
        data(){
            return{title:"introduce"}
        },
        props:["title"]
    }
    Vue.component("counter",counter)
    var app = new Vue({
        el:"#app",
        data:{
            msg:"组件通讯内容msg"
        },
    });
</script>

</body>
</html>